public class MonthEmployee extends First {

    private double workMonth;

    public MonthEmployee(String name, double salary) {
        super(name);
        this.workMonth = salary;
    }

    @Override
    public double calcSalary() {
        return getWorkMonth();
    }

    public double getWorkMonth() {
        return workMonth;
    }

    public void setWorkMonth(int workMonth) {
        this.workMonth = workMonth;
    }
}
